<?php


class Admin_UsersController extends Zend_Controller_Action
{
    public function init()
    {
        $this->db = Zend_Db_Table::getDefaultAdapter();
    }

    public function indexAction()
    {
        $users = $this->db->query("SELECT * FROM users")->fetchAll();
        $this->view->users = $users;
    }
}